const { defineConfig } = require('@vue/cli-service')
const proxyObj = {}
proxyObj['/api']={
  ws:false,
  target:"http://127.0.0.1:8080",
  //请求头
  changeOrigin:true,
  pathRewrite:{
    '^/api':'/'
  }
}
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    host: '0.0.0.0',
    port: 80,
    proxy: proxyObj
  },
  publicPath: "/"
})